package com.sright.bcard.user.dal.dao;

import com.sright.bcard.common.service.share.base.dao.BaseDAO;
import com.sright.bcard.common.service.share.dto.page.PageParamRequest;
import com.sright.bcard.user.dal.entity.MemberDO;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MemberDAO extends BaseDAO<MemberDO> {

    MemberDO selectMemberIdByNickName(String nickName);

    MemberDO selectByOpenId(String openId);

    List<MemberDO> selectAll();

    Integer countAvatar(Integer needReview);

    List<MemberDO> avatarList(PageParamRequest paramRequest, Integer needReview);
}
